package com.example.zhangxin.xutils3demo;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ImageView;

public class BitmapActivity extends AppCompatActivity {

    private ImageView iv_bit;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_bitmap);
        iv_bit = (ImageView) findViewById(R.id.iv_bit);
        Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.mipmap.a31);
        Bitmap bitmap1 = MyImageViewMoHuUtil.fastblur(this, bitmap, 10);
        Bitmap bitmap2 = MyImageViewMoHuUtil.blurImageAmeliorate(bitmap1);
        iv_bit.setImageBitmap(bitmap2);
    }
}
